<?php
                    //delete issue_id (Checkboxs). i use array to get the value of the issueid's.
                    
                    if(isset($_POST['delete'])){
                        for($i=0;$i<$totalRows_issuenotes;$i++){
                            $delete= $_REQUEST['delete'];
                            $checkbox = $_REQUEST['checkbox'];
                            $count = count($_REQUEST['checkbox']);
                            $delete_result = $chekbox[$i];
                            
                            // building connection of queries
                            
                            $sql_query = "UPDATE issuenotes SET deleted WHERE issueid = $delete_result";
                            $result = mysql_query($sql_query);
                           
                            echo "<script>";
                            echo "alert('Data has been deleted!')";
                            echo "</script>";
                           }
                        
                    }
                ?>

?>